package Day_06;

public class ExtendTwoDemo {
    public static void main(String[] args) {
        int[] arr = {1,2,3,4,5,6,7,8,9,10,11,12,13};
        printArrayData(arr);
    }

    public static void printArrayData(int[] a){
        for (int i = 0; i <= 2*a.length-3; i++) {
            if(i!=a.length-2){
                System.out.print("* ");
            }
            if(i == a.length-2){
                System.out.print("Array ");
            }
        }
        System.out.println();
        for (int i = 0; i < a.length; i++) {
            System.out.print(a[i]+"\t");
        }System.out.println();
        for (int i = 0; i <= 2*a.length-3; i++) {
            if(i!=a.length-2){
                System.out.print("* ");
            }
            if(i == a.length-2){
                System.out.print("Array ");
            }
        }
        System.out.println();
    }
}
